package com.yonyou.brigade.third_parties.ctrip.bigcustomer.controller;


import com.yonyou.brigade.third_parties.ctrip.bigcustomer.service.ICtripOrderService;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;

@Controller
@RequestMapping("/thirdparties/ctrip/bigcustomer/order")
public class CtripBigOrder {

    @Autowired
    @Qualifier("ctripOrderServiceImpl")
    private ICtripOrderService orderService;

    @RequestMapping("/orders")
    public @ResponseBody
    String getOrders()
    {
        orderService.getOrderList("es0jmgsl","0001F410000000000P18","2018-07-23","2018-08-10",0);
        return  "ok";
    }
}
